import "./ChaKanCart.css"
import { Button } from 'antd';
import { useNavigate, useLocation } from 'react-router-dom';
const ChaKanCart = () => {
    const navigate = useNavigate()
    const fanhui = () => {
        navigate(-1)
    }
    let location = useLocation();
    console.log("教练" + location.state.id)
    console.log("c_name" + location.state.m_carname)
    console.log("c_name" + location.state.m_name)
    console.log("c_name" + location.state.m_phone)
    console.log("c_name" + location.state.m_discount)
    console.log("c_name" + location.state.m_status)
    console.log("c_name" + location.state.m_money)
    console.log("c_name" + location.state.m_class)
    console.log("c_name" + location.state.m_name)
    console.log("c_name" + location.state.m_address)
    return (
        <div class="boxChaKan" >
            {/* 标题 */}
            <div class="titleAdd">
                <div>会员卡信息</div>
                <Button onClick={fanhui}>返回</Button>
            </div>
            {/* 主体 */}
            <div class="bodyAdd">

                <div>会员：{location.state.m_name}</div>
                <div>会员卡名称：{location.state.m_carname}</div>
                <div>会员卡等级：{location.state.m_class}</div>
                <div>会员手机：{location.state.m_phone}</div>
                <div>当前状态：{location.state.m_status}</div>
                <div>开卡场馆：{location.state.m_address}</div>
                <div>余额：{location.state.m_money}</div>
                <div class="zhekoua">会员折扣:{location.state.m_discount}</div>
            </div>
        </div>

    )
}

export default ChaKanCart